Automattic\Jetpack\Image_CDN\Image_CDN D

Total Complexity 223
Dependencies 7
Dependents 7
Total lines 1,365
Lines of code 641
Logical lines of code 358
Comment lines 548
Methods 30
Properties 4

Methods 30

Method Rating Maintainability Complexity Lines of code
filter_the_content()
D
20
75 155
filter_image_downsize()
D
31 41 99
filter_srcset_array()
C
35 26 81
filter_photon_norezise_maybe_inject_sizes()
A
51 10 27
validate_image_url()
A
48 9 34
image_sizes()
S
47 5 39
should_rest_photon_image_downsize_override()
S
56 5 20
filter_sizes()
S
60 5 13
parse_images_from_html()
S
61 5 12
filter_the_galleries()
S
61 5 12
parse_dimensions_from_filename()
S
62 4 11
strip_image_dimensions_maybe()
S
60 3 12
filter_the_image_widget()
S
62 3 12
setup()
S
55 2 17
action_wp_enqueue_scripts()
S
60 2 15
should_rest_photon_image_downsize()
S
65 3 10
filter_photon_noresize_thumbnail_urls()
S
65 3 8
enable_noresize_mode()
S
60 2 12
should_rest_photon_image_downsize_insert_attachment()
S
71 2 6
instance()
S
68 2 8
is_amp_endpoint()
S
78 2 3
cleanup_rest_photon_image_downsize()
S
65 1 11
__construct()
S
98 1 1
filter_photon_norezise_maybe_inject_sizes_api()
S
78 1 3
filter_photon_noresize_intermediate_sizes()
S
81 1 3
filter_photon_norezise_domain()
S
81 1 3
filter_content_remove()
S
75 1 4
filter_content_add()
S
75 1 4
is_enabled()
S
80 1 3
override_image_downsize_in_rest_edit_context()
S
82 1 3